import java.util.Scanner;

public class test2 {

    // 注意类名必须为 Main, 不要有任何 package xxx 信息
        public static void main3(String[] args) {
            Scanner sc = new Scanner(System.in);
            String s1 = sc.nextLine();

            String[] ch = s1.split(" ");
            int r = ch[ch.length-1].length();
            System.out.println(r);
        }
    }

